#ifndef _KEY_H
#define _KEY_H

#include "Common.h"
//#include "stm8s_type.h" 

#include "struct.h"
#define    K1  0xA1
#define    K2  0xA2
#define    K3  0xA3
#define    K4  0xA4
#define    K5  0xA5
#define    K6  0xA6
#define    K7  0xA7

#define   K8  0xA8
#define   K9  0xA9
#define   K10 0xAA

#define   key_mark  0x80




extern  BitStatus   Auto_mode;
extern  Out_TypeDef  Out;
extern  Out_TypeDef  buff;
extern  Out_TypeDef  temp;

extern  u8 key,shan,Storage_time;
extern  u8 ID[4];	
extern  u8 ID2[4];

extern  u8 Mode;
extern  u8 Mode_buff;
extern  u8 Sk_Mode;
//extern  u16	yy;
extern  u8	dim_val;
extern  u8  code   dim_table[10];
extern   u16 sp1;   
extern   u8 ii; 
extern   u8 music,music_ok,ct1;

extern  BitStatus   Storage;
void  key_managent(void);

#endif


